package com.xmy.cultivate.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum TypePermissionEnum {

    //订单类型：1报名，2补费，3转课，4退费
    NO(0,"无"),
    MENU(1,"菜单"),
    BTN(2,"按钮"),
    API(3,"api");

    @EnumValue
    private Integer key;

    @JsonValue
    private String value;

    TypePermissionEnum(Integer key, String value){
        this.key = key;
        this.value = value;
    }
}
